<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:rich="http://richfaces.org/rich">

    <ui:composition template="./templates/template.xhtml">

        <ui:define name="content">
            <div class="content-center">
                <rich:dataGrid styleClass="membros-grid" value="#{AdministrarMembrosMB.listMembros}"
                               var="membro" rendered="#{!empty AdministrarMembrosMB.listMembros}">
                    <table>
                        <tr>
                            <td rowspan="4"><h:graphicImage style="margin:0 auto;" id="foto" url="#{membro.foto}" border="0" alt="foto do membro" title="foto do membro"/></td>
                        </tr>
                        <tr>
                            <td><b>Membro:</b></td>
                            <td><h:outputText value="#{membro.nome}" /></td>
                        </tr>
                        <tr>
                            <td><b>Cargo:</b></td>
                            <td><h:outputText value="#{membro.cargo.nome}" /></td>
                        </tr>
                        <tr>
                            <td><b>Função:</b></td>
                            <td><h:outputText value="#{membro.cargo.funcao}" /></td>
                        </tr>
                    </table>
                </rich:dataGrid>
            </div>
        </ui:define>

    </ui:composition>
</html>
